﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
 

namespace FCDB.Web.Models
{
    public class ChangePasswordViewModel
    {
        [Required]
        [DataType(DataType.Password)]
       
        public string OldPassword { get; set; }

        [Required]
        [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
        [DataType(DataType.Password)]
       
        public string NewPassword { get; set; }

        [DataType(DataType.Password)]
       
        [Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")]
        public string ConfirmPassword { get; set; }
    }
    public class LogOnViewModel
    {
        [Required] 
        public string UserName { get; set; }

        [Required]
        [DataType(DataType.Password)] 
        public string Password { get; set; }

       
        public bool RememberMe { get; set; }

        public string ErrorStr { get; set; }

    }
    public class RegisterViewModel
    {
        [Required] 
        public string UserName { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
       
        public string Email { get; set; }

        [Required]
        [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
        [DataType(DataType.Password)]
        
        public string Password { get; set; }

        [DataType(DataType.Password)] 
        [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
        public string ConfirmPassword { get; set; }
    }
}